<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		body{
			background-image: url(app/Install/View/Install/images/bgimg.jpg);
		}
	</style>
	
            <link href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
            <link href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap-theme.min.css" rel="stylesheet">
            <script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
        
	<script src="http://cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
	<h2>环境检测</h2>
	<table class="table">
		<?php foreach ($fun['fun'] as $k=>$v){?>
		 <tr>
			<td><?php echo $k?></td>
			<td class="<?php echo $v?'':'error'?>"><?php echo $v?'OK':'X'?></td>
		</tr>
		<?php }?>
	</table>
	<h2>目录检测</h2>
	<table class="table">
		<?php foreach ($fun['dir'] as $k=>$v){?>
		<tr>
			<td><?php echo $k?></td>
			<td><?php echo $v?></td>
		</tr>
		<?php }?>
	</table>
	<a href="<?php echo U('setup')?>" class="btn btn-default">上一步</a>
	<button class="btn btn-primary" onclick="next()">下一步</button>
	<script type="text/javascript">
		function next(){
			if($(".error").length>0)
			{
				alert('安装环境不满足');
				return false;
			}
			location.href="<?php echo U('database')?>";
		}
	</script>
</body>
</html>